3.13.34 \(\int (a+b x)^m (a c-b c x)^m \, dx\) [1234]

Optimal. Leaf size=57 \[ x (a+b x)^m (a c-b c x)^m \left (1-\frac {b^2 x^2}{a^2}\right )^{-m} \, _2F_1\left (\frac {1}{2},-m;\frac {3}{2};\frac {b^2 x^2}{a^2}\right ) \]

[Out]

x*(b*x+a)^m*(-b*c*x+a*c)^m*hypergeom([1/2, -m],[3/2],b^2*x^2/a^2)/((1-b^2*x^2/a^2)^m)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {42, 252, 251} \begin {gather*} x (a+b x)^m \left (1-\frac {b^2 x^2}{a^2}\right )^{-m} (a c-b c x)^m \, _2F_1\left (\frac {1}{2},-m;\frac {3}{2};\frac {b^2 x^2}{a^2}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^m*(a*c - b*c*x)^m,x]

[Out]

(x*(a + b*x)^m*(a*c - b*c*x)^m*Hypergeometric2F1[1/2, -m, 3/2, (b^2*x^2)/a^2])/(1 - (b^2*x^2)/a^2)^m

Rule 42

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(m_), x_Symbol] :> Dist[(a + b*x)^FracPart[m]*((c + d*x)^Frac
Part[m]/(a*c + b*d*x^2)^FracPart[m]), Int[(a*c + b*d*x^2)^m, x], x] /; FreeQ[{a, b, c, d, m}, x] && EqQ[b*c +
a*d, 0] &&  !IntegerQ[2*m]

Rule 251

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[-p, 1/n, 1/n + 1, (-b)*(x^n/a)],
x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILtQ[Simplify[1/n + p], 0] && (IntegerQ[p
] || GtQ[a, 0])

Rule 252

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^FracPart[p]/(1 + b*(x^n/a))^Fra
cPart[p]), Int[(1 + b*(x^n/a))^p, x], x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILt
Q[Simplify[1/n + p], 0] &&  !(IntegerQ[p] || GtQ[a, 0])

Rubi steps

\begin {align*} \int (a+b x)^m (a c-b c x)^m \, dx &=\left ((a+b x)^m (a c-b c x)^m \left (a^2 c-b^2 c x^2\right )^{-m}\right ) \int \left (a^2 c-b^2 c x^2\right )^m \, dx\\ &=\left ((a+b x)^m (a c-b c x)^m \left (1-\frac {b^2 x^2}{a^2}\right )^{-m}\right ) \int \left (1-\frac {b^2 x^2}{a^2}\right )^m \, dx\\ &=x (a+b x)^m (a c-b c x)^m \left (1-\frac {b^2 x^2}{a^2}\right )^{-m} \, _2F_1\left (\frac {1}{2},-m;\frac {3}{2};\frac {b^2 x^2}{a^2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 72, normalized size = 1.26 \begin {gather*} -\frac {2^m (a-b x) (c (a-b x))^m (a+b x)^m \left (\frac {a+b x}{a}\right )^{-m} \, _2F_1\left (-m,1+m;2+m;\frac {a-b x}{2 a}\right )}{b (1+m)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^m*(a*c - b*c*x)^m,x]

[Out]

-((2^m*(a - b*x)*(c*(a - b*x))^m*(a + b*x)^m*Hypergeometric2F1[-m, 1 + m, 2 + m, (a - b*x)/(2*a)])/(b*(1 + m)*
((a + b*x)/a)^m))

________________________________________________________________________________________

Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int \left (b x +a \right )^{m} \left (-b c x +a c \right )^{m}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^m*(-b*c*x+a*c)^m,x)

[Out]

int((b*x+a)^m*(-b*c*x+a*c)^m,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^m*(-b*c*x+a*c)^m,x, algorithm="maxima")

[Out]

integrate((-b*c*x + a*c)^m*(b*x + a)^m, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^m*(-b*c*x+a*c)^m,x, algorithm="fricas")

[Out]

integral((-b*c*x + a*c)^m*(b*x + a)^m, x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 2.81, size = 146, normalized size = 2.56 \begin {gather*} \frac {a a^{2 m} c^{m} {G_{6, 6}^{5, 3}\left (\begin {matrix} - \frac {m}{2}, \frac {1}{2} - \frac {m}{2}, 1 & \frac {1}{2}, - m, \frac {1}{2} - m \\- m - \frac {1}{2}, - m, - \frac {m}{2}, \frac {1}{2} - m, \frac {1}{2} - \frac {m}{2} & 0 \end {matrix} \middle | {\frac {a^{2} e^{- 2 i \pi }}{b^{2} x^{2}}} \right )} e^{- i \pi m}}{4 \pi b \Gamma \left (- m\right )} - \frac {a a^{2 m} c^{m} {G_{6, 6}^{2, 6}\left (\begin {matrix} - \frac {1}{2}, 0, \frac {1}{2}, - \frac {m}{2} - \frac {1}{2}, - \frac {m}{2}, 1 & \\- \frac {m}{2} - \frac {1}{2}, - \frac {m}{2} & - \frac {1}{2}, 0, - m - \frac {1}{2}, 0 \end {matrix} \middle | {\frac {a^{2}}{b^{2} x^{2}}} \right )}}{4 \pi b \Gamma \left (- m\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**m*(-b*c*x+a*c)**m,x)

[Out]

a*a**(2*m)*c**m*meijerg(((-m/2, 1/2 - m/2, 1), (1/2, -m, 1/2 - m)), ((-m - 1/2, -m, -m/2, 1/2 - m, 1/2 - m/2),
 (0,)), a**2*exp_polar(-2*I*pi)/(b**2*x**2))*exp(-I*pi*m)/(4*pi*b*gamma(-m)) - a*a**(2*m)*c**m*meijerg(((-1/2,
 0, 1/2, -m/2 - 1/2, -m/2, 1), ()), ((-m/2 - 1/2, -m/2), (-1/2, 0, -m - 1/2, 0)), a**2/(b**2*x**2))/(4*pi*b*ga
mma(-m))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^m*(-b*c*x+a*c)^m,x, algorithm="giac")

[Out]

integrate((-b*c*x + a*c)^m*(b*x + a)^m, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int {\left (a\,c-b\,c\,x\right )}^m\,{\left (a+b\,x\right )}^m \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*c - b*c*x)^m*(a + b*x)^m,x)

[Out]

int((a*c - b*c*x)^m*(a + b*x)^m, x)

________________________________________________________________________________________